home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / MemBuddy / MemBuddy Demo / HelloWorld.c next >
C/C++ Source or Header  |  1998-06-19  |  378b  |  19 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <time.h>
  4.  
  5. #define kALotofMemmory    (10L* 1024L * 1024L)
  6.  
  7.  
  8. int main(void)
  9. {
  10.     char* myPtr;
  11.     printf ("Hello World, This is a Membuddy Test\n\n");
  12.     printf("\nThe size resource is set to 384K and I am going to allocate %ld K\n", kALotofMemmory / 1024);
  13.  
  14.     myPtr = malloc(kALotofMemmory);
  15.     printf("myPtr = %8.8lX\n", myPtr);
  16.     return 0;
  17. }
  18.  
  19.